pure virtual function in c with example